package com.chenfan.process.common.constants;

import com.chenfan.process.entity.po.ProcessPo;
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;

import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * @author K
 * @date 2023/8/8 2:17 PM
 */
public class CacheConstants {
    private CacheConstants() {}

    public static final String NODE_CACHE = "node_cache";
    public static Cache<String, List<ProcessPo>> NODE_CACHE_LIST = Caffeine.newBuilder()
            .expireAfterWrite(90, TimeUnit.MINUTES).maximumSize(10000).build();
}
